#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;
#include <vector>


int main()
{
    class Solution {
    public:
        vector<int> singleNumber(vector<int>& nums) {

            int sumXOR = 0;
            for (int& n : nums) {
                sumXOR ^= n;
            }
            int index = 1;
            while (((sumXOR & index) == 0)) {
                index <<= 1;
            }
            int sumXOR1 = 0, sumXOR0 = 0;
            for (int& num : nums) {
                if (index & num) {
                    sumXOR1 ^= num;
                }
                else {
                    sumXOR0 ^= num;
                }
            }
            return { sumXOR0,sumXOR1 };
        }
    };
    cout << 1 << endl;


    return 0;
}